"use strict"; var ashade={}, $ashade_html=jQuery('html'), ashade_tns=[], $ashade_body=jQuery('body'), $ashade_window=jQuery(window), $ashade_header=jQuery('header#ashade-header'), $ashade_footer=jQuery('footer#ashade-footer'), $ashade_main=jQuery('main.ashade-content-wrap'), $ashade_scroll=jQuery('.ashade-content-scroll'), $ashade_header_holder, ashade_f_grid=[]; ashade.config={ 'smooth_ease':0.1, 'content_load_delay': 0.8, 'header_scroll': false, 'referrer':document.referrer, 'location':jQuery(location).attr('href'), 'home_link':false } function ashade_inView(this_el){ var rect=this_el.getBoundingClientRect() return ( (rect.height > 0||rect.width > 0) && rect.bottom >=0 && rect.right >=0 && rect.top <=(window.innerHeight||document.documentElement.clientHeight) && rect.left <=(window.innerWidth||document.documentElement.clientWidth) ) } if($ashade_body.hasClass('ashade-header-scrollable')){ ashade.config.header_scroll=true; var $ashade_header_inner=$ashade_header.children('.ashade-header-inner'); } if($ashade_body.hasClass('ashade-home-template')){ var ashade_landing={ get_event: function(){ let this_event=false; if(window.location.href.indexOf('?event=') > -1){ this_event=window.location.href.split('?event=')[1]; }else if(window.location.href.indexOf('?page_id=') > -1&&window.location.href.indexOf('&event=') > -1){ this_event=window.location.href.split('&event=')[1]; } return this_event; }, get_location: function(){ let this_url=false; if(window.location.href.indexOf('?event=') > -1){ this_url=window.location.href.split('?event=')[0]; }else if(window.location.href.indexOf('?page_id=') > -1&&window.location.href.indexOf('&event=') > -1){ this_url=window.location.href.split('&event=')[0]; } return this_url; }, get_event_url: function(event){ let this_event_url=false; if(window.location.href.indexOf('?page_id=') > -1){ this_event_url=window.location.href+'&event='+event; }else{ this_event_url=window.location.href+'?event='+event; } return this_event_url; }} }else{ ashade_landing=false; } ashade.link_exception=function($this){ let classes=[ 'comment-reply-link', 'ajax_add_to_cart', 'remove' ], ids=[ 'cancel-comment-reply-link' ], result=false; classes.forEach(function(this_class){ if($this.hasClass(this_class)){ result=true; }}); ids.forEach(function(this_id){ if($this.attr('id')==this_id) result=true; }); return result; } class Ashade_Filtered_Grid { constructor(this_obj){ let this_class=this; if(!this_obj){ return false; } if(this_obj instanceof jQuery){ this.$el=this_obj; }else{ this.$el=jQuery(this_obj); } if(this.$el.hasClass('ashade-gallery-adjusted')){ this.type='adjusted'; }else{ this.type='grid'; } this.id=this.$el.attr('id'); this.$filter=jQuery('.ashade-filter-wrap[data-id="'+ this.id +'"]'); if(! this.$filter.find('.ashade-mobile-filter-wrap').length){ this.init_mobile_filter=true; this.$filter_mobile_wrap=jQuery('
').appendTo(this.$filter); this.$filter_mobile=jQuery('
').appendTo(this.$filter_mobile_wrap); this.$filter_mobile.append(''+this.$filter.data('label')+''); this.$filter_mobile_value=jQuery(''+ this.$filter.find('a.is-active').text() +'').appendTo(this.$filter_mobile); this.$filter_mobile_list=jQuery('